package com.clc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.clc.bean.Users;
import com.clc.dao.IUserDao;
import com.clc.service.IUserService;

@Component("userService")
public class UserServiceImpl implements IUserService {
	@Autowired
	private IUserDao userDao;

	public Users findUserById(Integer id) throws Exception{
		return userDao.findUserById(id);
	}

	@Override
	public List<Users> findUserList() throws Exception{
		// TODO Auto-generated method stub
		return userDao.findUserList();
	}

}
